import request from '@/utils/request'

// 物料类型-Controller层-请求路径
var url = "basic/work_center/"

// 可根据名称和编码查询数据
export function getListByCodeOrName(data,page) {
    return request({
      url: url + "getListByCodeOrName?pageNum=" + page.pageNum + "&pageSize=" + page.pageSize,
      method:"post",
      data:data
    })
}

// 根据ID获取数据
export function getEntityById(params) {
    return request({
      url:url + "getEntityById",
      method:"get",
      params:params
    })
}


